package com.yserp.project.erp.order.deliveryorder.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yserp.project.erp.order.deliveryorder.domain.DeliveryOrder;
import com.yserp.project.erp.order.deliveryorder.domain.DeliveryOrderDto;
import com.yserp.project.erp.order.deliveryorder.domain.DeliveryOrderVo;

import java.util.List;

/**
 * 销售发货订单Service接口
 * 
 * @author yserp
 * @date 2022-07-26
 */
public interface IDeliveryOrderService extends IService<DeliveryOrder>
{
    /**
     * 查询销售发货订单
     * 
     * @param id 销售发货订单主键
     * @return 销售发货订单
     */
    public DeliveryOrderVo selectDeliveryOrderById(Long id);

    /**
     * 查询销售发货订单列表
     * 
     * @param deliveryOrder 销售发货订单
     * @return 销售发货订单集合
     */
    public List<DeliveryOrder> selectDeliveryOrderList(DeliveryOrder deliveryOrder);

    /**
     * 新增销售发货订单
     * 
     * @param deliveryOrder 销售发货订单
     * @return 结果
     */
    public int insertDeliveryOrder(DeliveryOrderDto deliveryOrderDto);

    /**
     * 修改销售发货订单
     * 
     * @param deliveryOrder 销售发货订单
     * @return 结果
     */
    public int updateDeliveryOrder(DeliveryOrderDto deliveryOrderDto);

    /**
     * 批量删除销售发货订单
     * 
     * @param ids 需要删除的销售发货订单主键集合
     * @return 结果
     */
    public int deleteDeliveryOrderByIds(String ids);

    /**
     * 批量删除销售发货订单
     *
     * @param ids 需要删除的销售发货订单主键集合
     * @return 结果
     */
    public int deleteDeliveryOrderById(Long id);

    /**
     * 批量审核销售发货订单
     *
     * @param ids
     * @return 结果
     */
    public int auditDeliveryOrderByIds(String ids);

    public int deliveryStatus(DeliveryOrder deliveryOrder);


}
